package com.jinly.ryder.manage.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.jinly.ryder.common.dao.entity.BaseDO;
import com.jinly.ryder.manage.service.model.AppBuildType;
import com.jinly.ryder.manage.service.model.AppDeployType;
import com.jinly.ryder.manage.service.model.AppLogType;
import com.jinly.ryder.manage.service.model.AppMonitorType;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("app_info")
public class AppInfoDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 应用名称
     */
    @TableField(value = "app_name", updateStrategy = FieldStrategy.NEVER)
    private String appName;

    /**
     * 应用展示名称
     */
    @TableField(value = "app_show_name")
    private String appShowName;

    /**
     * 构建类型
     */
    @TableField(value = "build_type", updateStrategy = FieldStrategy.IGNORED)
    private AppBuildType buildType;

    /**
     * 部署类型
     */
    @TableField(value = "deploy_type", updateStrategy = FieldStrategy.IGNORED)
    private AppDeployType deployType;

    /**
     * 监控方式
     */
    @TableField(value = "monitor_type", updateStrategy = FieldStrategy.IGNORED)
    private AppMonitorType monitorType;

    /**
     * 日志类型
     */
    @TableField(value = "log_type", updateStrategy = FieldStrategy.IGNORED)
    private AppLogType logType;
}
